﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Jayden.Dll.Core;
using Jayden.Dll.Core.Persistence;

namespace Jayden.Windows.PokerWatcher
{
	public partial class PokerWatcherMainForm : Form
	{
		public Configuration Configuration { get; set; }
		public UnitOfWork UnitOfWork { get; set; }

		public PokerWatcherMainForm(Configuration config, UnitOfWork uow)
		{
			Configuration = config;
			UnitOfWork = uow;

			InitializeComponent();

			WindowState = FormWindowState.Maximized;

			openToolStripMenuItem.PerformClick();
		}

		private void openToolStripMenuItem_Click(object sender, EventArgs e)
		{
			PokerWatcherWindowForm window = new PokerWatcherWindowForm(Configuration, UnitOfWork);
			window.MdiParent = this;

			window.Show();
			//window.WindowState = FormWindowState.Maximized;
			window.WindowState = FormWindowState.Normal;
		}

		private void oddsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			PokerOddsCalculatorForm odds = new PokerOddsCalculatorForm();
			odds.MdiParent = this;

			odds.Show();
		}
	}
}
